package COM.XYS;

public class yuan {
    private double r;//半径
    //数据传递
    public double getR(){
     return r;
    }
    public void setR(double r) {
        System.out.println(r);
        this.r = r;
    }

    public double findArea(){
        double s =3.14 * r * r;
        return  s;
    }
}